﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Green.AgileMapper
{
    public abstract class MappingConfiguratorBase : IMappingConfigurator
    {
        /// <summary>
        /// 默认from list和to list相等的表达式（from,to）=>retun bool;：建议优先
        /// </summary>
        public Func<object, object, bool> DefaultEqualExpression
        {
            get;
            set;
        }


        #region IMappingConfigurator 成员

        public abstract bool IsNeedCache
        {
            get;
        }

        public abstract IMappingRule[] GetMappingRule(object from);

        public abstract string GetConfigurationName();

        #endregion
    }
}
